package com.yfp.client.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yfp.client.domain.MealReplacement;

import java.util.List;
import java.util.Map;

/**
 * @author admin
 * @description 针对表【meal_replacement(代取餐状态表)】的数据库操作Service
 * @createDate 2024-05-24 19:03:57
 */
public interface MealReplacementService extends IService<MealReplacement> {

    /**
     * 根据设备id获取运营在线状态
     *
     * @param machineIds
     * @return
     */
    Map<String, Integer> operationalOnlineStatus(List<String> machineIds);

    /**
     * 根据machineIds查询
     *
     * @param machineIds
     * @return
     */
    List<MealReplacement> listByMachineIds(List<String> machineIds);

    List<MealReplacement> getByMachineId(String machineId);

    Boolean getStatus(String machineId);
}
